﻿	<div class="userDivide" id="userLine"></div>
	<div class="userDivide" id="mainPart">
		<div id="userName">${student.name }</div>
		<div id="userId">${student.id }</div>
	</div>
	<a href="/jsp/infCheck.jsp"><div class="userDivide" id="userChange">修改</div></a>
	<a href="/loginOut.do"><div class="userDivide" id="userExit">退出</div></a>
	<div class="userDivide" id="secondPart">
		<div class="userInfDetail">Tel:${student.telShow }</div>
		<div class="userInfDetail">Mail:&nbsp;&nbsp;${student.mail }</div>
		<div class="userInfDetail">Major:&nbsp;${student.major }</div>
	</div>


<script language="javascript">
	var adst = document.getElementById("userInf").style;
	adst.marginTop = ( 1 + "px");
			
	var y = 1;
	
	function moveR() 
	{
		var yScroll;

		if (document.documentElement && document.documentElement.scrollTop)
		{ 
			yScroll = document.documentElement.scrollTop; 
		} 
		else if (document.body) 
		{ 
			yScroll = document.body.scrollTop; 
		}
		else if (self.pageYOffset) 
		{ 
			yScroll = self.pageYOffset; 
		}
		
		yScroll += 1;
	
		if(Math.abs(yScroll - y) > 3)
		{
			change = 1;
			y += (yScroll - y) /10;
		}
		
		adst.marginTop = ( y + "px");
	}	
			
	var m = setInterval("moveR();", 20);
</script>




